import SubComponent from './SubComponent'

export default ({ title, age }) => {
  return (
    <div>
      <h1>Main Component</h1>
      <h1>title:{title}</h1>
      <h1>age:{age}</h1>
      <SubComponent items={['a', 'b', 'c']} onSayHi={(name) => {
        console.log("HI FROM CHILD:", name);
      }} />
    </div>
  );
};

